.box{
    position: relative;
    height: 100%;
}

.legend{
    position: absolute;
    right: 100px;
    transform: translateY(-50%);
    top: 50%;

    > div{
        padding: 6px 4px;
    }

    span{
        margin-right: 10px;
        color: rgba(0, 0, 0, 0.45);
    }

    .line{
        height: 16px;
        width: 1px;
        background: #ccc;
        display:inline-block;
        vertical-align: middle;
    }
}
